import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/global.css'
// 加载JS初始配置
import './utils/dayjs'
import VueI18n from 'vue-i18n'
import filters from '@/utils/filter'
import './assets/fonts/iconfont.css'
Object.keys(filters).forEach(k => Vue.filter(k, filters[k]))

Vue.config.productionTip = false

Vue.use(VueI18n)

const i18n = new VueI18n({
  locale: 'en', // 语言标识
  messages: {
    zh: require('./assets/translate/zh'),
    en: require('./assets/translate/en')
  }
})

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
